// 临时复制的网上的

let resize = {
  bind(el, binding) {
    
    let width
    
    function isResize() {
      
      const clientWidth = el.clientWidth
      
      if (width !== clientWidth) {
        binding.value();
      }
      
      width = clientWidth;
      
    }
    
    el._vueSetInterval_ = setInterval(isResize, 100);
    
  },
  unbind(el) {
    clearInterval(el._vueSetInterval_);
  }
}

export default resize;
